<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Message extends CI_Controller {

    public  $_title='在线留言 客户服务 ';

    public function __construct(){
        parent::__construct();
        $this->_utility();
    }
	public function index()
	{

        $this->MySmarty->display("message.html",md5("message"),$this->_title.'|'.$this->Config['DefaultTitle'],$this->Config['DefaultKeywords'],$this->Config['DefaultDescription']);

    }
	public function send()
	{	
	    $this->load->model('Message_model','message');
	    
	    $status=$this->message->send();
	    
	    echo "{\"status\":$status}";	
        die;
	}

	function _utility(){
        $this->MySmarty->assign('WEBJS',array('/js/jquery.min.js','/js/jquery-ajaxForm.js'));
	}

}
